#pragma once
#include <lua.hpp>
#pragma comment(lib, "lua5.1.lib")
#include <string>
#ifdef LUAINTERFACE_EXPORTS
#define LUAINTERFACE_API __declspec(dllexport)

#else
#define LUAINTERFACE_API __declspec(dllimport)

#endif

class LUAINTERFACE_API LuaInterface
{
public:
	LuaInterface(void);
	~LuaInterface(void);
	// @return, true if load successfully		
	bool loadModule(const char* luaFileName);
	int getStackSize();
	int getInteger(const char* valueName);
	float getFloat(const char* valueName);
	bool getBollean(const char* valueName);
	std::string getString(const char* valueName);
protected:
	lua_State* L;
};
